<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreatePayrollsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('payrolls', function(Blueprint $table)
		{
			$table->increments('id');
			$table->date('date')->nullable()->comment('时间');
			$table->string('gr_name')->nullable()->comment('工人');
			$table->string('gx_name')->nullable()->comment('工序');
			$table->string('gb_name')->nullable()->comment('班组');
			$table->float('gr_count')->nullable()->comment('工人数量');
			$table->float('finish')->nullable()->comment('完成量');
			$table->float('danjia')->nullable()->comment('单个价格');
			$table->float('jiangli')->nullable()->comment('奖励');
			$table->float('wage')->nullable()->comment('工资');
			$table->string('notes')->nullable()->comment('备注');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('payrolls');
	}

}
